package com.hancher.gamelife2.weather;

import java.math.BigDecimal;

/**
 * 作者 : Hancher ytu_shaoweijie@163.com <br/>
 * 时间 : 2023/7/19 8:49 <br/>
 * 描述 : 城市编码实体类
 */
public class CityCodeBean {


    /**
     * 省
     */
    String province;
    /**
     * 市
     */
    String city;
    /**
     * 区县
     */
    String district;
    /**
     * 街道
     */
    String subDistrict;
    /**
     * 城市编码
     */
    String cityCode;
    /**
     * 经度
     */
    String longitude;
    /**
     * 纬度
     */
    String latitude;
    /**
     * 精准登记，1级
     */
    int accurate = 0;
    /**
     * 距离的平方
     */
    BigDecimal distance;

    public CityCodeBean() {
    }

    public CityCodeBean(String province, String city, String district, String cityCode) {
        this.province = province;
        this.city = city;
        this.district = district;
        this.cityCode = cityCode;
    }

    public String getLongitude() {
        return longitude;
    }

    public CityCodeBean setLongitude(String longitude) {
        this.longitude = longitude;
        return this;
    }

    public String getLatitude() {
        return latitude;
    }

    public CityCodeBean setLatitude(String latitude) {
        this.latitude = latitude;
        return this;
    }

    public int getAccurate() {
        return accurate;
    }

    public CityCodeBean setAccurate(int accurate) {
        this.accurate = accurate;
        return this;
    }

    public BigDecimal getDistance() {
        return distance;
    }

    public CityCodeBean setDistance(BigDecimal distance) {
        this.distance = distance;
        return this;
    }

    public String getProvince() {
        return province;
    }

    public String getCity() {
        return city;
    }

    public String getDistrict() {
        return district;
    }

    public String getCityCode() {
        return cityCode;
    }

    public CityCodeBean setProvince(String province) {
        this.province = province;
        return this;
    }

    public CityCodeBean setCity(String city) {
        this.city = city;
        return this;
    }

    public CityCodeBean setDistrict(String district) {
        this.district = district;
        return this;
    }

    public String getSubDistrict() {
        return subDistrict;
    }

    public CityCodeBean setSubDistrict(String subDistrict) {
        this.subDistrict = subDistrict;
        return this;
    }

    public CityCodeBean setCityCode(String cityCode) {
        this.cityCode = cityCode;
        return this;
    }

    @Override
    public String toString() {
        return "CityCode{" +
                "province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", cityCode=" + cityCode +
                '}';
    }
}
